WPDiscourse\Admin\SettingsValidator B

Total Complexity 78
Dependencies 0
Dependents 0
Total lines 849
Lines of code 410
Logical lines of code 217
Comment lines 320
Methods 38
Properties 7

Methods 38

Method Rating Maintainability Complexity Lines of code
__construct()
S
36 1 90
validate_enable_sso()
S
52 5 29
validate_sso_client_enabled()
S
52 5 28
validate_int()
S
54 5 24
validate_sso_client_login_form_redirect()
S
58 4 16
validate_webhook_secret()
S
67 4 7
validate_auto_create_welcome_redirect()
S
63 4 10
validate_auto_create_login_redirect()
S
63 4 10
validate_login_path()
S
63 4 10
validate_url()
S
60 3 13
validate_api_key()
S
60 3 13
clear_cached_html()
S
67 3 8
validate_allowed_post_types()
S
69 2 7
validate_publish_username()
S
65 2 9
sanitize_checkbox()
S
78 2 3
validate_email()
S
69 2 7
validate_text_input()
S
69 2 7
validate_sso_secret()
S
66 2 8
validate_clear_comments_html()
S
71 2 6
validate_force_publish_max_age()
S
80 1 3
sanitize_int()
S
80 1 3
sanitize_html()
S
80 1 3
sanitize_text()
S
80 1 3
validate_radio_string_value()
S
80 1 3
validate_checkbox()
S
80 1 3
validate_min_trust_level()
S
65 1 10
validate_publish_category()
S
80 1 3
validate_bypass_trust_level_score()
S
65 1 10
validate_existing_comments_heading()
S
80 1 3
validate_max_comments()
S
65 1 10
validate_min_replies()
S
65 1 10
setup_options()
S
70 1 6
validate_min_score()
S
65 1 10
validate_use_discourse_user_webhook()
S
76 1 4
validate_use_discourse_webhook()
S
76 1 4
validate_max_tags()
S
80 1 3
validate_custom_excerpt_length()
S
65 1 10
validate_webhook_match_old_topics()
S
76 1 4